#!/bin/bash
cpath=$(cd `dirname $0`; pwd)  
 
if [ -f install.sh ]&&[ -f uninstall.sh ]&&[ -f ccs-rt.txz ]; then
    tar cf dpkg.tar install.sh uninstall.sh ccs-rt.txz
    cp template.sh install-ccsrt.sh
    cat dpkg.tar >>  install-ccsrt.sh
    rm -f dpkg.tar
else
    echo -e "\n\n===> The Script $0 need 3 input file.\n"
    echo -e "\n install.sh uninstall.sh ccs-rt.txz\n"   
    exit 200
fi